package com.zx.user;

import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.ConfigurableApplicationContext;
import org.springframework.core.env.ConfigurableEnvironment;

/**
 * @author 虎哥
 */
@SpringBootApplication
@Slf4j
@EnableDiscoveryClient
@EnableFeignClients("com.szh.zh.feign")
@EnableConfigurationProperties
public class StorageApplication {
    public static void main(String[] args) {
        ConfigurableApplicationContext context = SpringApplication.run(StorageApplication.class, args);
        ConfigurableEnvironment environment = context.getEnvironment();
        // 打印配置文件加载顺序
        // log.error("加载顺序:{}",environment);
        log.error("Storage --- run ----");
    }
}
